package com.itboye.textileexpres.myset;

import android.R.integer;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.ToggleButton;

import com.itboye.textileexpres.R;
import com.itboye.textileexpres.base.BaseActivity;

public class ActivityFavorite extends BaseActivity implements OnClickListener {
	TextView title;
	ImageView back, img_other;
	ToggleButton version_toggle_button, message_toggle_button;
	RelativeLayout textSize_rel,language_rel;

	@Override
	public int initView() {
		// TODO Auto-generated method stub
		return R.layout.activity_favorite;
	}

	@Override
	public void onMyCreate() {
		// TODO Auto-generated method stub
		title.setText(R.string.favorite);
		img_other.setVisibility(View.GONE);
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.back:
			finish();
			break;
		case R.id.textSize_rel:
			Intent intent = new Intent(this, ActivityTextSize.class);
			startActivity(intent);
			break;
		case R.id.language_rel:
//			Intent intent2 = new Intent(this, ActivityLanguageChange.class);
			Intent intent2 = new Intent(this, ActivityLanguage.class);
			startActivity(intent2);
			break;
		}
	}
}
